.printer-add-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  position: relative;
}

/* 添加背景图片及高斯模糊效果 */
.printer-add-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://k.sinaimg.cn/n/sinakd20116/214/w2048h1366/20221104/af07-e6609440d705650f2c294447c6e87a53.jpg/w700d1q75cms.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.7;
}

.printer-add-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.printer-add-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 500;
}

.btn-text {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-text:hover {
  background-color: rgba(240, 240, 240, 0.7);
}

.printer-add-form {
  background: rgba(255, 255, 255, 0.8);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
  background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bfbfbf;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #40a9ff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #1890ff;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #40a9ff;
}

.btn-secondary {
  background-color: rgba(240, 240, 240, 0.8);
  color: #333;
}

.btn-secondary:hover:not(:disabled) {
  background-color: rgba(217, 217, 217, 0.9);
}

.form-hint {
  color: #8c8c8c;
  font-size: 12px;
  margin-top: 4px;
}

.success-message {
  background-color: rgba(232, 245, 233, 0.9);
  border: 1px solid #b6e0b6;
  color: #2e7d32;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

.error-message {
  background-color: rgba(255, 241, 240, 0.9);
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-message .close-btn {
  background: none;
  border: none;
  color: #ff4d4f;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  padding: 0 5px;
}

textarea {
  resize: vertical;
  min-height: 80px;
} 